/*
 * --------------------------------------------------------------
 * Copyright ©  2015 Hangzhou DtDream Technologies Co.,Ltd.
 * --------------------------------------------------------------
 *      Product: 协同数治
 *  Module Name: design
 * Date Created: 2023/3/13
 *  Description: TODO
 * --------------------------------------------------------------
 * Modification History
 * DATE            NAME            Description
 * --------------------------------------------------------------
 * 2023/3/13       yewj            TODO
 * --------------------------------------------------------------
 */

package com.dtdream.pattern.state;

/**
 * TODO
 *
 * @Author: yewj
 **/
public class Client {
    public static void main(String[] args) {
        RaffleActivity activity = new RaffleActivity(1);

        for (int i = 0; i < 10; i++) {
            System.out.println("--------第" + (i + 1) + "次抽奖---------");
            activity.deductMoney();

            activity.raffle();
        }

    }
}
